package com.sg.controller.bff;

import com.sg.service.biz.bff.AchievementDockService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "AchievementDock", tags = {"AchievementDock"})
@RestController
// @RequestMapping("/oms/achievementDock/")
public class AchievementDockController {

    @Autowired
    AchievementDockService achievementDockService;

    /**
     * B3批量查询成果对接by创建人
     * gen by moon at 7/19/2024, 5:46:24 PM
     */
    @PostMapping("/oms/achievementDock/batchQueryAchievementDockByCreateInductionId")
    @ApiOperation(value = "B3批量查询成果对接by创建人", response = OkrResult.class)
    public OkrResult<BffBatchQueryAchievementDockByCreateInductionIdRespDto> batchQueryAchievementDockByCreateInductionId(@RequestBody(required = false) @Validated BffBatchQueryAchievementDockByCreateInductionIdReqDto reqDTO) {
        return OkrResult.success(achievementDockService.batchQueryAchievementDockByCreateInductionId(reqDTO));
    }
}
